# Contributor: Paul Bredbury <brebs@sent.com>
pkgname=evolution-on
pkgver=3.24.2
pkgrel=0
pkgdesc="Tray plugin for Evolution email client"
url="https://github.com/acidrain42/evolution-on"
arch="x86_64" # Unknown whether works on other arches
license="GPL-2.0-or-later"
depends="evolution"
makedepends="autoconf automake evolution-dev glib-dev gnome-common intltool libtool"
source="$pkgname-$pkgver.tar.gz::https://github.com/acidrain42/$pkgname/archive/v$pkgver.tar.gz
	gconf-source-remove.patch
	widget.patch"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	./autogen.sh --prefix=/usr
}

build() {
	cd "$builddir"
	make
}

check() {
	cd "${builddir}"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="7f6c048c052ecab2efefaeddaba9db8f7f63035c5505fce0b9c260b5cf2044fe0c4d90a2e7461e1643f507daa1d3a871be9c16e58311d229697d9ce11faa82cf  evolution-on-3.24.2.tar.gz
374fb2f1140d0edf514d1f63279c00414bd4c17dc33242b254f48db9f5bdadf12384f307105e76439e310bb6eccf51698beab9696f7ef0616876632421e64a85  gconf-source-remove.patch
025b2b9e910bb85157a000c7e87ad9123b68d46c1cb9b69d65fd07330862b809e4e23282cec10c480bb7c033e80197278b0ffc7e57e9fa4052238d48e8aecfb9  widget.patch"
